package com.springboot.last_experiment.voutils;

import com.springboot.last_experiment.vo.ResultVO;

public class ResultVOUtil {
    public static ResultVO success(Object object){
        ResultVO ResultVO = new ResultVO();
        ResultVO.setStatus(200);
        ResultVO.setMsg("成功");
        ResultVO.setData(object);
        return ResultVO;
    }

    public static ResultVO error(Integer code, String msg){
        ResultVO resultVO = new ResultVO();
        resultVO.setStatus(code);
        resultVO.setMsg(msg);
        return resultVO;
    }
}
